package io.renren.service.impl;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.dao.UserTokenDao;
import io.renren.entity.UserToken;
import io.renren.service.UserTokenService;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("userTokenService")
public class UserTokenServiceImpl extends ServiceImpl<UserTokenDao, UserToken> implements UserTokenService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<UserToken> page = this.selectPage(
                new Query<UserToken>(params).getPage(),
                new EntityWrapper<>()
        );

        return new PageUtils(page);
    }

}
